package com.shiguiwu.springmybatis.designpattern.abstractfactory.scene.factory;

import com.shiguiwu.springmybatis.designpattern.abstractfactory.scene.factory.domain.RedisEGM;
import com.shiguiwu.springmybatis.designpattern.abstractfactory.scene.factory.domain.RedisIIR;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.StringRedisTemplate;

/**
 * @description: 配置
 * @author: stone
 * @date: Created by 2021/8/12 23:37
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.designpattern.abstractfactory.scene.factory
 */
@Configuration
public class FactoryConfig {

    @Bean
    public RedisIIR redisIIR(StringRedisTemplate stringRedisTemplate) {
        return new RedisIIR(stringRedisTemplate);
    }


    @Bean
    public RedisEGM redisEGM(StringRedisTemplate stringRedisTemplate) {
        return new RedisEGM(stringRedisTemplate);
    }


}
